package link.anyauto.dtbinding.base;

import android.app.Activity;
import android.os.Bundle;

/**
 * Created by LYQ on 2016/7/26.
 */
public class ActBase extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        state = savedInstanceState;
        setupBinding();
        setupVM();
        setupHandlers();
        justAfterSetup();
    }

    protected void setupBinding(){}
    protected void setupVM(){}
    protected void setupHandlers(){}
    protected void justAfterSetup(){}

    protected Bundle getSavedInstanceState() {
        return state;
    }

    private Bundle state;
}
